package com.wjb.service.Impl;

import com.wjb.mapper.OrderServiceMapper;
import com.wjb.pojo.entity.Orderx;
import com.wjb.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import javax.transaction.Transactional;

/**
 * @author : 王济彬
 * @date: 2025/5/24 - 05 - 24 - 17:24
 * @Description: com.wjb.service.Impl
 * @version: 1.0
 */
@Service
@Transactional
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderServiceMapper orderServiceMapper;

    @Override
    public boolean insertOrder(Orderx order) {
        return orderServiceMapper.createOrder(order.getOrderId(),order.getOrderName(),order.getOrderCreateTime(),order.getOrderCreateName(),order.getProductId());
    }
}
